package cn.com.hongfu.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.com.hongfu.dao.UserMapper;
import cn.com.hongfu.model.User;
import cn.com.hongfu.service.UserService;
@Service("userService")
public class UserServiceImpl implements UserService{
	@Autowired
	public UserMapper userMapper ;
	@Override
	public void save(User user) {
		userMapper.save(user);
	}

	@Override
	public List<User> all() {
		// TODO Auto-generated method stub
		return userMapper.all();
	}

	@Override
	public User login(User user) {
		// TODO Auto-generated method stub
		return userMapper.login(user);
	}

	@Override
	public User getUserById(int id) {
		// TODO Auto-generated method stub
		return userMapper.getUserById(id);
	}
	
}
